package com.szit.adminserver.dao;

import com.szit.adminserver.entity.AdminUserRole;

public interface AdminUserRoleMapper {
    int deleteByPrimaryKey(Integer userRoleId);

    int insert(AdminUserRole record);

    int insertSelective(AdminUserRole record);

    AdminUserRole selectByPrimaryKey(Integer userRoleId);

    int updateByPrimaryKeySelective(AdminUserRole record);

    int updateByPrimaryKey(AdminUserRole record);

    int deleteByUserId(Integer userId);

    /**
     * 根据roleId查找多少个
     * @param roleId
     * @return
     */
    Integer selectCountByRoleId(Integer roleId);

    /**
     * 根据用户id查找
     * @param userId
     * @return
     */
    AdminUserRole selectByUserId(Integer userId);

}